﻿<!DOCTYPE html>
<html lang="zxx" xmlns:th="http://www.thymeleaf.org">
    <head>
		<div th:include="back/aareplace :: repHead"></div>
		<title>教师界面</title>
    </head>
    <body>
		
		<!-- Main Wrapper -->
        <div class="main-wrapper">

			<div th:replace="back/aareplace :: rep1"></div>
			<!-- Sidebar -->
			<div class="sidebar" id="sidebar">
				<div class="sidebar-inner slimscroll">
					<div id="sidebar-menu" class="sidebar-menu">
						<ul>
							<li class="menu-title">
								<span>主菜单</span>
							</li>
							<li >
								<a th:href="@{/admindex}"><i class="fas fa-th-large"></i> <span>控制面板</span></a>
							</li>
							<li class="submenu">
								<a th:href="@{/#}"><i class="fas fa-user-graduate"></i> <span>家长信息</span> <span class="menu-arrow"></span></a>
								<ul>
									<li><a th:href="@{/admpar}">家长列表</a></li>

								</ul>
							</li>
							<li class="submenu active">
								<a th:href="@{/#}"><i class="fas fa-chalkboard-teacher"></i> <span> 教师管理</span> <span class="menu-arrow"></span></a>
								<ul>
									<li><a th:href="@{/admtea}" class="active">教师列表</a></li>
									<li><a th:href="@{/admteadetail/}+('200001')">教师详情</a></li>
									<li><a th:href="@{/toaddtea}">增加教师</a></li>
									<li><a th:href="@{/updateTeacher/}+('200001')">教师信息更新</a></li>
								</ul>
							</li>

							<li class="submenu">
								<a th:href="@{#}"><i class="fas fa-book-reader"></i> <span>课程</span> <span class="menu-arrow"></span></a>
								<ul>
									<li><a th:href="@{/admpro}">课程包列表</a></li>
									<li><a th:href="@{/addpro}">添加课程包</a></li>
									<li><a th:href="@{/updatepro/}+('400001')">课程包信息更新</a></li>
								</ul>
							</li>


							<li class="menu-title">
								<span>页面</span>
							</li>

							<li class="submenu">
								<a th:href="@{#}"><i class="fas fa-shield-alt"></i> <span> 经典页面 </span> <span class="menu-arrow"></span></a>
								<ul>
									<li><a th:href="@{/admin}">登录界面</a></li>

									<li><a th:href="@{/admerror}">404</a></li>
								</ul>
							</li>
							<li>
								<a th:href="@{/admpage}"><i class="fas fa-file"></i> <span>空白页</span></a>
							</li>

						</ul>
					</div>
				</div>
			</div>
			<!-- /Sidebar -->


			<!-- Page Wrapper -->
            <div class="page-wrapper">
                <div class="content container-fluid">
				
					<!-- Page Header -->
					<div class="page-header">
						<div class="row align-items-center">
							<div class="col">
								<h3 class="page-title">教师</h3>
								<ul class="breadcrumb">
									<li class="breadcrumb-item"><a th:href="@{admindex}">控制面板</a></li>
									<li class="breadcrumb-item active">教师</li>
								</ul>
							</div>
							<!-- Search Bar -->


							<div class="top-nav-search">
								<form th:action="@{/admtea/searchtea}" method="post">
									<input type="text" class="form-control" th:name="seatea" placeholder="输入关键词">
									<button class="btn" type="submit"><i class="fas fa-search"></i></button>
								</form>
							</div>
							<!-- /Search Bar -->
							<div class="col-auto text-right float-right ml-auto">
								<a th:href="@{#}" class="btn btn-outline-primary mr-2"><i class="fas fa-download"></i> 下载</a>
								<a th:href="@{toaddtea}" class="btn btn-primary"><i class="fas fa-plus"></i></a>
							</div>
						</div>
					</div>
					<!-- /Page Header -->
				
					<div class="row">
						<div class="col-sm-12">
						
							<div class="card card-table">
								<div class="card-body">
									<div class="table-responsive">
										<table class="table table-hover table-center mb-0 datatable">
											<thead>
												<tr>
													<th>教工号</th>
													<th>教师用户名</th>
													<th>教师姓名</th>
													<th>性别</th>
													<th>教龄</th>
													<th>是否是ACMer</th>
													<th>已完成课时数</th>
													<th>毕业学校</th>
													<th class="text-right">操作</th>
												</tr>
											</thead>
											<tbody>
												<tr th:each="tea:${teas}">
													<td th:text="${tea.getTeaid()}"></td>
													<td>
														<h2 class="table-avatar">
															<a th:href="@{admteadetail/}+(${tea.getTeaid()})" class="avatar avatar-sm mr-2"><img class="avatar-img rounded-circle" th:src="@{'/assets/img/teachers-img/' + ${tea.getTesphoto1()}}" alt="User Image"></a>
															<a th:href="@{admteadetail/}+(${tea.getTeaid()})" th:text="${tea.getTeaname()}"></a>
														</h2>
													</td>
													<td th:text="${tea.getRealteaname()}"></td>
													<td th:text="${tea.getTeasex()}"></td>
													<td th:text="${tea.getTeayear()}"></td>
													<td th:text="${tea.getIsacmer()}"></td>
													<td th:text="${tea.getTeahour()}"></td>
													<td th:text="${tea.getTeaschool()}"></td>
													<td class="text-right">
														<div class="actions">
															<a th:href="@{/updateTeacher/}+(${tea.getTeaid()})" class="btn btn-sm bg-success-light mr-2">
																<i class="fas fa-pen"></i>
															</a>
															<a th:href="@{/admdeltea/}+(${tea.getTeaid()})" class="btn btn-sm bg-danger-light">
																<i class="fas fa-trash"></i>
															</a>
														</div>
													</td>
												</tr>

											</tbody>
										</table>
									</div>
								</div>
							</div>							
						</div>					
					</div>					
				</div>

				<!-- Footer -->
				<footer>
					<p>Copyright © 2020By </p>					
				</footer>
				<!-- /Footer -->
				
			</div>
			<!-- /Page Wrapper -->
			
        </div>
		<div th:include="back/aareplace :: repsc"> </div>
    </body>
</html>